package day04;
import  java.util.Scanner;

public class ScoreLevel {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入您的成绩");
        double score = scan.nextDouble();
        if (score>100 || score <0){
            System.out.println("成绩不合法");
        }
        else if (score>=90) {
            System.out.println("您的成绩是" + score +",优秀");
        }else if (score >=80 ){
            System.out.println("您的成绩是" + score +",良好");
        }
        else if(score>=60 ){
            System.out.println("您的成绩是" + score +",中等");
        }else {
            System.out.println("您的成绩是" + score +",不及格");

        }
    }
}
